package com.weipai.education.dao;

import com.weipai.education.model.Menu;
import com.weipai.education.model.RoleMenu;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/11 16:24
 */
public interface MenuDao {
    List<Menu> getAllMenus();

    List<Menu> getMenusByRoleId(String roleId);

    Map<String,String> getOperation();

    int deleteRoleMenus(Integer roleId);

    void saveRoleMenus(List<RoleMenu> roleMenus);

    Integer verifyRoleIdAndMenuId(Integer roleId, Integer menuId);
}
